<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends CI_Controller
{
	var $engineReturn 	= array();
	var $specialValue 	= array();
	var $data			= array();
	
	var $loginIdUser		= "";
	var $loginAksesUser		= "";
	var $menuUserOtority	= "admin";
	
	var $theme_setting		= array("front_banner_sizes" => array());
	
	public function __construct()
	{
		parent::__construct();
	}
	
	
	public function index()
	{
		$this->data["baseUrl"]			= $this->config->item('base_url');
		$this->data["baseUrlSave"]		= $this->config->item('base_url')."?";
		$this->data["engineTemplate"]	= $this->config->item('base_url')."application/views/engine/template/";
		$this->data["engineModule"]		= $this->config->item('base_url')."application/views/engine/module/";
		$this->data["otority"]			= $this->menuUserOtority;
		$this->data["engineReturn"]		= $this->engineReturn;
		$engineSetting	= array();	
		$system			= $this->uri->segment(2);
		$module			= $this->uri->segment(3);
		$rule			= $this->uri->segment(4);
		$this->load->library('session');
		$this->load->model("engine/master");
		$this->load->model("web/mod_general");
		$this->load->helper('form');
		$this->load->model("manual/mod_hasil");
		$this->loginIdUser	= $this->session->userdata('userId');
		$this->loginAksesUser	= $this->session->userdata('akses');
		
		// get banner sizes
		$this->data["Template"]			= $this->config->item('base_url')."application/views/template/";
		$this->data["TemplateEngine"]			= $this->config->item('base_url')."application/views/engine/template/";
		
		$this->load_theme_setting();
		
		$this->master->printArr($this->session->userdata, false);
		$this->output->enable_profiler(false);
		if($system=='logout')
		{
			$this->session->sess_destroy();
		}
		if($this->loginAksesUser!=$this->menuUserOtority || ($system=='logout'))
		{
			if($system=='ajax')
			{
				$loginProcess = $this->loginUser();
				if($loginProcess['login'])
				{
					$this->session->sess_destroy();
					$this->session->set_userdata(
										array(
											'userId' 	=> $loginProcess['id']
											, 'akses'	=> $this->menuUserOtority
										)
									);
				}
				$this->load->view("engine/module/login", array(
															'otority' 	=> $this->data["otority"]
															,'engineReturn' 	=> $this->data["engineReturn"]
															, 'baseUrlSave'	=> $this->data["baseUrlSave"]
															, 'login'		=> $loginProcess['login']
															));
			}
			else
			{
				$this->data["engineReturn"]["title"]		= "Login Administrator";
				$this->load->view("engine/template/header", $this->data);
				$this->load->view("engine/template/login", $this->data);
				$this->load->view("engine/template/footer");
			}
		}
		else
		{
			$this->master->set_ID_USER($this->loginIdUser);
			$this->master->set_USER_OTORITY($this->menuUserOtority);
			$this->data["otority"]			= $this->menuUserOtority;
			switch($system)
			{
				case "manual":
					$this->data['engineReturn']['title'] = "";
					switch($module)
					{
//####################################################################
						case "data_nilai_admin":
							$this->data['engineReturn']['title'] = "Data Nilai";
							$view_name	= "data_nilai";
						break;
						case "cetak_kartu_ujian_adm":
							$ajaran = $this->input->post('tahun_ajaran', TRUE);
							$semes = $this->input->post('semester', TRUE);
							$kls = $this->input->post('kelas', TRUE);
								
							$khusus_pil = $this->input->post('pilihan', TRUE);
							$khusus_isi = $this->input->post('isi', TRUE);
								
							$status = $this->input->post('status_mahasiswa', TRUE);
							
							$tahun_ajaran	= ($ajaran=="")?$this->mod_general->get_web_setting('tahun_ajaran'):$ajaran;
							$semester		= ($semes=="")?$this->mod_general->get_web_setting('semester'):$semes;

							$this->data["pgl"] = 
										$this->mod_hasil->panggil_siswa(
												$tahun_ajaran
												, $semester
												, $kls
												, $khusus_pil
												, $khusus_isi
												, $status);
							$this->data["kelas"] = $this->mod_hasil->daftar_kelas();
							$this->data["tahun_ajaran"] = $this->mod_hasil->daftar_tahun_ajaran();
							$this->data["cek_tampil_transfer"]	= "Cetak Kartu Ujian";
							$view_name	= "cetak_kartu_ujian";
						break;
						case "khs_mahasiswa_admin":
							$ajaran = $this->input->post('tahun_ajaran', TRUE);
							$semes = $this->input->post('semester', TRUE);
							$kls = $this->input->post('kelas', TRUE);
							
							$khusus_pil = $this->input->post('pilihan', TRUE);
							$khusus_isi = $this->input->post('isi', TRUE);
							
							$status = $this->input->post('status_mahasiswa', TRUE);

							$this->data["pgl"] = $this->mod_hasil->panggil_siswa($ajaran,$semes,$kls,$khusus_pil,$khusus_isi,$status);
							$this->data["kelas"] = $this->mod_hasil->daftar_kelas();
							$this->data["tahun_ajaran"] = $this->mod_hasil->daftar_tahun_ajaran();
							$this->data["cek_tampil_transfer"]	= $status;
							$this->data['engineReturn']['title'] = "KHS Mahasiswa";
							$view_name	= "khs_mahasiswa";
						break;		
						case "transkip_nilai_admin":
							$this->load->helper('form');
							$this->load->model("manual/mod_hasil");
														
							$khusus_pil = $this->input->post('pilihan', TRUE);
							$khusus_isi = $this->input->post('isi', TRUE);

							$this->data["pgl"] = $this->mod_hasil->panggil_siswa_transkip($khusus_pil,$khusus_isi);
							$this->data['engineReturn']['title'] = "Transkip Nilai";
							$view_name	= "transkip_nilai";
						break;	
						case "input_nilai_mahasiswa_admin":
							$this->load->model("engine/mod_sys");
							$this->load->helper('url');
							$n_kodedosen	= $this->uri->segment(4);
							$n_tahun		= $this->uri->segment(5);
							$n_kodekelas	= $this->uri->segment(6);
							$n_kodemapel	= $this->uri->segment(7);
							$n_katnilai		= $this->uri->segment(8);
							$this->data['mode']	= "";
							if($n_kodedosen=="")
							{
								// Disini nampilin list dosen
								$this->data['dosen']	= $this->mod_sys->get_all_dosen();
								$this->data['mode']		= "dosen";
								// terus enter
							}
							elseif($n_kodedosen!="" & $n_tahun=="" & $n_kodekelas=="")
							{
								// Disini nampilin list tahun ama kelas
								$this->data['dosen']	= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']	= $this->mod_sys->get_tahun_ajaran_nilai($n_kodedosen);
								$this->data['kelas']	= $this->mod_sys->get_kelas_nilai($n_kodedosen);
								$this->data['mode']		= "tahun_kelas";
								// terus enter
							}
							elseif($n_kodedosen!="" & $n_tahun!="" & $n_kodekelas!="" & $n_kodemapel=="")
							{
								// Ama Link buat clear seleksi
								// Disini nampilin Mata Pelajaran si guru	
								$this->data['dosen']	= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']	= $this->mod_sys->get_tahun_ajaran_from_id($n_tahun);
								$this->data['kelas']	= $this->mod_sys->get_kelas_from_id($n_kodekelas);
								$this->data['mapel']	= $this->mod_sys->get_mapel($n_kodedosen,$n_tahun,$n_kodekelas);
								$this->data['mode']		= "mapel";
							}
							elseif($n_kodemapel!="")
/*
							{ 
								$this->data['tahun']		= $this->mod_sys->get_tahun_ajaran_from_id($n_tahun);
								$this->data['kelas']		= $this->mod_sys->get_kelas_from_id($n_kodekelas);
								$this->data['mapel']		= $this->mod_sys->get_mapel_from_id($n_kodemapel);
								$this->data['kat_nilai']	= $this->mod_sys->get_kategori_nilai(	);
								$this->data['mode']			= "nilai";
								// Setelah itu otomatis save
							}
							elseif($n_katnilai!="")
*/
							{ 
								$this->data['dosen']	= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']		= $this->mod_sys->get_tahun_ajaran_from_id($n_tahun);
								$this->data['kelas']		= $this->mod_sys->get_kelas_from_id($n_kodekelas);
								$this->data['mapel']		= $this->mod_sys->get_mapel_from_id($n_kodemapel);
								$this->data['kat_nilai']	= $this->mod_sys->get_kat_nilai_from_id($n_katnilai);
								$id_kelas_detail			= $this->mod_sys->get_kelas_detail_nilai(
																	$n_tahun, 
																	$n_kodekelas);

								
//								$post_kat_nilai				= $this->input->post("kat_nilai");
								$post_kode_mapel			= $this->input->post("kode_mapel");
								$post_kirim					= $this->input->post("kirim");
								if($post_kirim=="simpan")
								{
									foreach($this->input->post() as $nm=>$po)
									{
										if(substr($nm, 0, 2)=="nm")
										{
											$nimnya 		= substr($nm,-(strlen($nm)-2));
											$nilai 			= $this->input->post("nil-".$po);
											$kelas_siswa 	= $this->input->post("ids-".$po);
											$this->mod_sys->update_nilai( $post_kode_mapel
																		, $kelas_siswa
																		, $nilai
																		, $id_kelas_detail
																		, $nimnya);
										}
									}
								}
								
								$this->data['mode']			= "kat_nilai";
								// Disini ditampilin semua siswa berjajar ke bawah
								$this->data['list_siswa']	= $this->mod_sys->get_list_siswa_nilai(
															$n_kodedosen,
															$id_kelas_detail,
															$n_kodemapel
															);
								
								// setelah itu kekanan kolom untuk nilai
								// Setelah itu otomatis save
								
							}
							
							
							$this->data['engineReturn']['title'] = "Input Nilai Mahasiswa";
							$view_name	= "input_nilai_mahasiswa_admin";
						break;
						case "absensi_mhs_adm":
							$this->load->model("engine/mod_sys");
							$this->load->helper('url');
							$n_kodedosen	= $this->uri->segment(4);
							$n_tahun		= $this->uri->segment(5);
							$n_kodekelas	= $this->uri->segment(6);
							$n_kodemapel	= $this->uri->segment(7);
							$n_katnilai		= $this->uri->segment(8);
							$this->data['mode']	= "";
							if($n_kodedosen=="")
							{
								// Disini nampilin list dosen
								$this->data['dosen']	= $this->mod_sys->get_all_dosen();
								$this->data['mode']		= "dosen";
								// terus enter
							}
							elseif($n_kodedosen!="" & $n_tahun=="" & $n_kodekelas=="")
							{
								// Disini nampilin list tahun ama kelas
								$this->data['dosen']	= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']	= $this->mod_sys->get_tahun_ajaran_nilai($n_kodedosen);
								$this->data['kelas']	= $this->mod_sys->get_kelas_nilai($n_kodedosen);
								$this->data['mode']		= "tahun_kelas";
								// terus enter
							}
							elseif($n_kodedosen!="" & $n_tahun!="" & $n_kodekelas!="" & $n_kodemapel=="")
							{
								// Ama Link buat clear seleksi
								// Disini nampilin Mata Pelajaran si guru	
								$this->data['dosen']	= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']	= $this->mod_sys->get_tahun_ajaran_from_id($n_tahun);
								$this->data['kelas']	= $this->mod_sys->get_kelas_from_id($n_kodekelas);
								$this->data['mapel']	= $this->mod_sys->get_mapel($n_kodedosen,$n_tahun,$n_kodekelas);
								$this->data['mode']		= "mapel";
							}
							elseif($n_kodemapel!="")
							{ 
								$this->data['dosen']				= $this->mod_sys->get_dosen_from_id($n_kodedosen);
								$this->data['tahun']				= $this->mod_sys->get_tahun_ajaran_from_id($n_tahun);
								$this->data['kelas']				= $this->mod_sys->get_kelas_from_id($n_kodekelas);
								$detailMapel						= $this->mod_sys->get_mapel_from_id($n_kodemapel);
								$this->data['mapel']				= $detailMapel;
								$this->data['kat_nilai']			= $this->mod_sys->get_kat_nilai_from_id($n_katnilai);
								$id_kelas_detail					= $this->mod_sys->get_kelas_detail_nilai(
																	$n_tahun, 
																	$n_kodekelas);

								
//								$post_kat_nilai				= $this->input->post("kat_nilai");
								$post_kode_mapel			= $this->input->post("kode_mapel");
								$post_kirim					= $this->input->post("kirim");
								if($post_kirim=="simpan")
								{
									foreach($this->input->post() as $nim=>$po)
									{
										if(substr($nim, 0, 3)=="nim")
										{
											$nimnya 		= substr($nim,-(strlen($nim)-4));
											$nilai 			= $this->input->post("nil-".$po);
											
											for($l=1; $l<=$detailMapel['pertemuan']; $l++)
											{
												$pertemuanKe		= $l;
												$pertemuanKeTrl		= substr(("00".($l)),-2);
												$scoreAbsensi		= $this->input->post("abs-".$po."-".$pertemuanKeTrl);
												if($scoreAbsensi!="")
												$this->mod_sys->update_absensi( $post_kode_mapel
																		, $id_kelas_detail
																		, $nimnya
																		, $pertemuanKe
																		, $scoreAbsensi);
											}
										}
									}
								}
								
								$this->data['mode']			= "kat_nilai";
								// Disini ditampilin semua siswa berjajar ke bawah
								$this->data['list_siswa']	= $this->mod_sys->get_list_siswa_absensi(
															$n_kodedosen,
															$id_kelas_detail,
															$n_kodemapel
															);
								
								// setelah itu kekanan kolom untuk nilai
								// Setelah itu otomatis save
								
							}
							
							
							$this->data['engineReturn']['title'] = "Absensi Mahasiswa";
							$view_name	= "absensi_mhs_adm";
						break;
					}
					if($rule=="ajax")
					{
						$this->load->view("engine/manual/$view_name", $this->data);
					}
					else
					{
						$this->load->view("engine/template/header", $this->data);
						$menu		= $this->master->getMenu($this->menuUserOtority, $this->loginIdUser);
						$this->load->view("engine/template/left", array('menu'=>$menu, 'base_url'=>$this->data["baseUrlSave"]));
						$this->load->view("engine/template/right_first",array("title"=>$this->data['engineReturn']['title']));
						$this->load->view("engine/manual/$view_name", $this->data);
						$this->load->view("engine/template/right_last");
						$this->load->view("engine/template/footer");
					}
				break;
				case "engine":
				default:
					switch($module)
					{
						case "edit_halaman_admin":
							$this->engineReturn = $this->$module("Edit Halaman", "edit_halaman_admin");
						break;
						case "periode_pendaftaran":
							$this->engineReturn = $this->$module("Periode Pendaftaran", "periode_pendaftaran");
						break;
						case "spa":
							$this->engineReturn = $this->$module("Setting PMB", "spa");
						break;
						case "kontak_kami_admin":
							$this->engineReturn = $this->$module("Kontak Kami", "kontak_kami_admin");
						break;
						case "konten_keyword_admin":
							$this->engineReturn = $this->$module("Kontent Keyword", "konten_keyword_admin");
						break;
						case "konten_kategori_admin":
							$this->engineReturn = $this->$module("Konten Kategori", "konten_kategori_admin");
						break;
						case "support_online_admin":
							$this->engineReturn = $this->$module("Support Online", "support_online_admin");
						break;
						case "kategori_support_online_admin":
							$this->engineReturn = $this->$module("Kategori Support Online", "kategori_support_online_admin");
						break;
						case "front_banner_admin":
							$this->engineReturn = $this->$module("Front Banner", "front_banner_admin");
						break;
						case "sidebar_banner":
							$this->engineReturn = $this->$module("Sidebar Banner", "sidebar_banner");
						break;
						case "kalender_akademik_admin":
							$this->engineReturn = $this->$module("Kalender Akademik", "kalender_akademik_admin");
						break;
						case "data_buku_admin":
							$this->engineReturn = $this->$module("Data Buku", "data_buku_admin");
						break;
						case "pengarang_admin":
							$this->engineReturn = $this->$module("Pengarang", "pengarang_admin");
						break;
						case "penerbit_admin":
							$this->engineReturn = $this->$module("Penerbit", "penerbit_admin");
						break;
						case "data_kategori_penilaian_admin":
							$this->engineReturn = $this->$module("Kategori Penilaian", "data_kategori_penilaian_admin");
						break;
						case "rak_buku_admin":
							$this->engineReturn = $this->$module("Rak Buku", "rak_buku_admin");
						break;
						case "agama_admin":
							$this->engineReturn = $this->$module("Agama", "agama_admin");
						break;
						case "nationality_admin":
							$this->engineReturn = $this->$module("Nationality", "nationality_admin");
						break;
						case "tahun_ajaran_admin":
							$this->engineReturn = $this->$module("Tahun Angkatan", "tahun_ajaran_admin");
						break;
						case "setting_nilai_admin":
							$this->engineReturn = $this->$module("Setting Nilai", "setting_nilai_admin");
						break;
						case "setting_semester_admin":
							$this->engineReturn = $this->$module("Setting Semester", "setting_semester_admin");
						break;
						case "data_ruangan_admin":
							$this->engineReturn = $this->$module("Data Ruangan", "data_ruangan_admin");
						break;
						case "data_kelas_admin":
							$this->engineReturn = $this->$module("Data Kelas", "data_kelas_admin");
						break;
						case "data_kelas_pertahun_admin":
							$this->engineReturn = $this->$module("Data Kelas Pertahun", "data_kelas_pertahun_admin");
						break;
						case "data_mahasiswa_mengulang_admin":
							$this->engineReturn = $this->$module("Data Mahasiswa Mengulang", "data_mahasiswa_mengulang_admin");
						break;
						case "data_mata_kuliah_admin":
							$this->engineReturn = $this->$module("Data Mata Kuliah", "data_mata_kuliah_admin");
						break;
						case "jadwal_pelajaran_admin":
							$this->engineReturn = $this->$module("Jadwal Mata Kuliah", "jadwal_pelajaran_admin");
						break;
						case "data_guru_admin":
							$this->engineReturn = $this->$module("Data Dosen", "data_guru_admin");
						break;
						case "data_jurusan_admin":
							$this->engineReturn = $this->$module("Data Jurusan", "data_jurusan_admin");
						break;
						case "data_siswa_admin":
							$this->engineReturn = $this->$module("Data Mahasiswa", "data_siswa_admin");
						break;
						case "tumedos":
							$this->engineReturn = $this->$module("Tugas Mengajar Dosen", "tumedos");
						break;
						case "data_krs_mahasiswa_admin":
							$this->engineReturn = $this->$module("Data KRS Mahasiswa", "data_krs_mahasiswa_admin");
						break;
						case "jadwal_kuliah_admin":
							$this->engineReturn = $this->$module("Jadwal Kuliah", "jadwal_kuliah_admin");
						break;
						case "nilai_mahasiswa_admin":
							$this->engineReturn = $this->$module("Nilai Mahasiswa", "nilai_mahasiswa_admin");
						break;
						case "input_nilai_mahasiswa_transfer_admin":
							$this->engineReturn = $this->$module("Input Nilai Mahasiswa Transfer", "input_nilai_mahasiswa_transfer_admin");
						break;
						case "kategori_admin_admin":
							$this->engineReturn = $this->$module("Kategori Admin", "kategori_admin_admin");
						break;
						case "akses_kategori_admin":
							$this->engineReturn = $this->$module("Akses Kategori", "akses_kategori_admin");
						break;
						case "admin_user_admin":
							$this->engineReturn = $this->$module("Admin User", "admin_user_admin");
						break;
						case "kwa":
							$this->engineReturn = $this->$module("Konfigurasi Website", "kwa");
						break;
						case "sra":
							$this->engineReturn = $this->$module("Setting Laporan", "sra");
						break;
						case "konfigurasi_sekolah_admin":
							$this->engineReturn = $this->$module("Konfigurasi Sekolah", "konfigurasi_sekolah_admin");
						break;
						case "sesys_ad":
							$this->engineReturn = $this->$module("Setting System", "sesys_ad");
						break;
						case "berita_admin":
							$this->engineReturn = $this->$module("Berita", "berita_admin");
						break;
						case "info_sekolah_admin":
							$this->engineReturn = $this->$module("Info Sekolah", "info_sekolah_admin");
						break;
						case "info_extrakurikuler_admin":
							$this->engineReturn = $this->$module("Info UKM", "info_extrakurikuler_admin");
						break;
						case "galeri_admin":
							$this->engineReturn = $this->$module("Galeri Sekolah", "galeri_admin");
						break;
						case "kategori_galeri_admin":
							$this->engineReturn = $this->$module("Kategori Galeri", "kategori_galeri_admin");
						break;
						case "data_pmb":
							$this->engineReturn = $this->$module("Data PMB Online", "data_pmb");
						break;
						
						//Data Guru
						case "input_nilai_mahasiswa_admin":
							$this->engineReturn = $this->$module("Input Nilai Mahasiswa", "input_nilai_mahasiswa_admin");
						break;
						case "upload_materi_admin":
							$this->engineReturn = $this->$module("Upload Materi", "upload_materi_admin");
						break;
						case "elearning_admin":
							$this->engineReturn = $this->$module("E Learning", "elearning_admin");
						break;
						case "penelitian_admin":
							$this->engineReturn = $this->$module("Penelitian", "penelitian_admin");
						break;
						case "pengabdian_dosen_admin":
							$this->engineReturn = $this->$module("Pengabdian Dosen", "pengabdian_dosen_admin");
						break;
						
						default:
							$this->data['engineReturn']['title'] = "Welcome";
						break;
					}
					$this->data["engineReturn"]					= $this->engineReturn;
					$this->data["engineReturn"]["cetak"]		= "nooooo";
					if(!isset($this->data['engineReturn']['title']))
						$this->data['engineReturn']['title'] = 'Welcome';
					if($rule=="ajax")
					{
						$this->load->view("engine/module/main", $this->data);
					}
					elseif($rule=="print")
					{
						$this->data["engineReturn"]["cetak"]		= "goOn";
						$this->load->view("engine/module/main", $this->data);
					}
					else
					{
						$this->load->view("engine/template/header", $this->data);
						$menu		= $this->master->getMenu('admin', $this->loginIdUser);
						$this->load->view("engine/template/left", array('menu'=>$menu, 'base_url'=>$this->data["baseUrlSave"]));
						$this->load->view("engine/template/right_first",array("title"=>$this->data['engineReturn']['title']));
						$this->load->view("engine/module/main", $this->data);
						$this->load->view("engine/template/right_last");
						$this->load->view("engine/template/footer");
					}
				break;
			}
		}
	}
	
	public function load_theme_setting()
	{
		$theme_name	= $this->mod_general->get_template_name(
										$this->data["Template"]."theme_name.txt"
										);
		$this->theme_setting['front_banner_sizes']	= $this->mod_general->get_banner_size(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		);
		
		$this->theme_setting['sidebar_banner_width']= $this->mod_general->get_theme_setting(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		, "SIDEBAR BANNER WIDTH"
		);
		
		$this->theme_setting['sidebar_banner_height']= $this->mod_general->get_theme_setting(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		, "SIDEBAR BANNER HEIGHT"
		);
		
		$this->theme_setting['logo_width']= $this->mod_general->get_theme_setting(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		, "LOGO WIDTH"
		);
		
		$this->theme_setting['footer_banner_width']= $this->mod_general->get_theme_setting(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		, "FOOTER BANNER WIDTH"
		);
		
		$this->theme_setting['footer_banner_height']= $this->mod_general->get_theme_setting(
		$this->data["Template"].$theme_name."/theme_setting.txt"
		, "FOOTER BANNER HEIGHT"
		);
		
	}
	
	public function loginUser()
	{
		$user	= $this->uri->segment(3);
		$pass	= $this->uri->segment(4);
		$this->load->model("engine/mod_sys");
		$sql	= "SELECT id_admin_user, user_pass FROM tbl_admin_user
					WHERE
					user_name 	= '$user'
					"/*AND 
					user_pass	= '$pass'*/
					."AND
					`active`	= 'y'";
		$rec	= $this->db->query($sql);
		$count	= $rec->num_rows();
		$res	= $rec->result_array();
		if($count>0)
			if($this->pass_word->decryptPass($res[0]['user_pass'])==$pass)
			{
				$this->mod_sys->insertLogLogin("admin"
				, $user);
				return array('login'=>true,'id'=>$res[0]['id_admin_user']);
			}
		else
			return array('login'=>false);
	}
	
	public function cross_field_sample($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_web_config"					// Table Name
		, true										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'config'									// modulename
		, array
			(
				'param',					// field_id
				'value',					// field_data
				array
				(
					"desc"
				)							// field_extra
			)
		);
		$arrayField 	= array(
							array(
									"Web Title"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'web_title'
								)
							, array(
									"Web Title Text Area"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 		=> 5
													, "COLS"	=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'web_text'
								)
							, array(
									"Maintenance"			// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'maintenance'
								)
							, array(
									"Pilih Data"				// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, array(array("Hitam")
											, array("PUTIH")
											, array("PUCAT")
											, array("KASAR")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'pilih_data'
								)
							, array(
									"Pilih Tabel"					// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, array("data_opsi"						// field
											, "id_opsi"						// id 
											, "sample_table_opsi_data"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("sample_table_select_data", "id_opsi")
											)					// validation
									, 'pilih_table'
								)
							, array(
									"Image Single"				// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, array("konfig_web")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=> "resizeWidth"
														, "width" 	=> 200
														, "height"	=> 0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=> "resizeHeight"
														, "width" 	=> 0
														, "height"	=> 200
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"crop"
														, "width" 	=>	200
														, "height"	=>  0
														, "type"	=> "crop"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
										)					// validation
									, "image"
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function sra($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, true										// Insert new record
				, true										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tbl_web_config"					// Table Name
				, true										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, 'config'									// modulename
				, array
				(
						'param',					// field_id
						'value',					// field_data
						array
						(
								"desc"
						)							// field_extra
				)
		);
		$arrayField 	= array(
				array(
						"Nama Ketua Kampus"					// Nama
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, 'nama_ketua_kampus'
				)
				,array(
						"Nip Ketua Kampus"					// Nama
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, 'nip_ketua_kampus'
				)
				,array(
						"Jabatan Ketua Kampus"					// Nama
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, 'jabatan_ketua_kampus'
				)
		);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	public function kwa($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_web_config"					// Table Name
		, true										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'config'									// modulename
		, array
			(
				'param',					// field_id
				'value',					// field_data
				array
				(
					"desc"
				)							// field_extra
			)
		);
		$arrayField 	= array(
							array(
									"Judul Web"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'web_title'
								)
							,array(
									"Front Title"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'front_title'
								)
							, array(
									"Alamat Kampus"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 4
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'alamat_sekolah'
								)
							, array(
									"Telp Sekolah"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'telp_sekolah'
								)
							, array(
									"Email"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'email'
								)
							, array(
									"Meta Desc Web"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 4
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'web_desc'
								)
							, array(
									"Meta Keyword Web"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 4
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'web_keyword'
								)
							, array(
									"Logo Website"				// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, array("konfig")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=> "resizeWidth"
														, "width" 	=> 170
														, "height"	=> 0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
										)					// validation
									, "web_logo"
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function spa($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, true										// Insert new record
				, true										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tbl_web_config"					// Table Name
				, true										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, 'config'									// modulename
				, array
				(
						'param',					// field_id
						'value',					// field_data
						array
						(
								"desc"
						)							// field_extra
				)
		);
		$arrayField 	= array(
				array(
						"Biaya Pendaftaran"					// Nama
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, 'Biaya_pendaftaran'
				)
							, array(
									"Info Rekening"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 		=> 5
													, "COLS"	=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'ket_rekening'
								)
						);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	
	public function konfigurasi_sekolah_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_web_config"					// Table Name
		, true										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'config'									// modulename
		, array
			(
				'param',					// field_id
				'value',					// field_data
				array
				(
					"desc"
				)							// field_extra
			)
		);
		$arrayField 	= array(
							array(
									"Nama Sekolah"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'front_title'
								)
							, array(
									"Telp Sekolah"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'telp_sekolah'
								)
							, array(
									"Alamat Sekolah"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 4
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'alamat_sekolah'
								)
							, array(
									"Moto Sekolah"					// Nama
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, 'moto_sekolah'
								)
							 , array(
									"Logo Sekolah"				// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, array("konfig")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
											)				// resize
											, false
										)					// validation
									, "web_logo"
								)
							 , array(
									"banner_bawah"				// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, array("konfig")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"resize"
														, "width" 	=>	$this->theme_setting['footer_banner_width']
														, "height"	=>  $this->theme_setting['footer_banner_height']
														, "type"	=> "crop"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	300
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
											)				// resize
											, true
										)					// validation
									, "banner_bawah"
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function sesys_ad($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_web_config"					// Table Name
		, true										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'config'									// modulename
		, array
			(
				'param',					// field_id
				'value',					// field_data
				array
				(
					"desc"
				)							// field_extra
			)
		);
		$arrayField 	= array(
/*
							array(
									"Semester"					// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, array("semester"						// field
											, "id_semester"						// id 
											, "tbl_semester"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_semester", "id_semester")
											)					// validation
									, 'semester'
								)
							,array(
									"Tahun Ajaran"					// Text
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, array("tahunajaran"						// field
											, "id_tahun_ajaran"						// id 
											, "tbl_tahun_ajaran"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_tahun_ajaran", "id_tahun_ajaran")
											)					// validation
									, 'tahunajaran'
								)
*/	
				array(
						"Semester"					// Text
						, array(					// Input type
								$this->master->INPUT_TYPE_SIMPLE_TABLE
								, array()
						)
									, array("semester"						// field
											, "id_semester"						// id 
											, "tbl_semester"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_semester", "id_semester")
											)					// validation
									, 'semester'
										)
				,array(
						"TahunAjaran"					// Text
						, array(					// Input type
								$this->master->INPUT_TYPE_SIMPLE_TABLE
								, array()
						)
						, array("tahun_ajaran"						// field
								, "id_tahun_ajaran"						// id
								, "tbl_tahun_ajaran"		// table source
						)
						, array($this->master->VALIDATION_MATCH_TABLE
								, array("tbl_tahun_ajaran", "id_tahun_ajaran")
						)					// validation
						, 'tahun_ajaran'
				)
				
				
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function berita_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_content"					// Table Name
		, false										// Input Mode cross record
		, "0"										// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_content"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"judul"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"isi"						// Field_name
									, "Isi"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"tanggal"						// Field_name
									, "Tanggal"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"id_admin"						// Field_name
									, "Id_admin"					// Nama
									, $this->master->FIELD_VALUE_USER	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"id_kategori"						// Field_name
									, "Kategori"						// Text
									, array("1")	// Value method
									, array(							// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true								// Primary key
									, false								// view
									, false								// edit
									, null								// source
									, $this->master->VALIDATION_NONE	// validation
									, false								// filter
									, null								// filter source
									, null
									, array(
												$this->master->OPERATOR_EQUAL,	// operand
												"1",								// value
											),
									)
							, array(
									"keyword"					// Field_name
									, "Meta Keyword"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_OUT_TABLE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_keyword_base"			// table name
										, array("keyword", "Keyword")				// field name
										, "id_content_keyword_base"					// field key
										, "tbl_content_keyword"				// out source table name
										, "id_content_keyword"						// out source field key
										, "keyword"						// out source field data
										, "id_content"									// out source field foreign
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							, array(
									"meta_desc"						// Field_name
									, "Meta Desc"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"image"					// Field_name
									, "Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_IMAGE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_image"			// out source table name
										, "id_content_image"					// out source field key
										, "id_content"								// out source field foreign
										, "image_url"								// out source field name
										, "berita_gambar"								// directory name for image
											)
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "png", "bmp", "gif", "swf")
											, array(
												array(
														"initial" 		=>	"crop"
														, "width" 		=>	150
														, "height"		=>  0
														, "type"		=> "crop"
													),
												array(
														"initial" 		=>	"admin"
														, "width" 		=>	80
														, "height"		=>  0
														, "type"		=> "crop"
														, "thumb_admin"	=> true
													),
												)
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function info_sekolah_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_content"					// Table Name
		, false										// Input Mode cross record
		, "0"										// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_content"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"judul"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"isi"						// Field_name
									, "Isi"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"tanggal"						// Field_name
									, "Tanggal"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"id_admin"						// Field_name
									, "Id_admin"					// Nama
									, $this->master->FIELD_VALUE_USER	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"id_kategori"						// Field_name
									, "Kategori"						// Text
									, array("2")	// Value method
									, array(							// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true								// Primary key
									, false								// view
									, false								// edit
									, null								// source
									, $this->master->VALIDATION_NONE	// validation
									, false								// filter
									, null								// filter source
									, null
									, array(
												$this->master->OPERATOR_EQUAL,	// operand
												"2",								// value
											),
									)
							, array(
									"keyword"					// Field_name
									, "Keyword"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_OUT_TABLE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_keyword_base"			// table name
										, array("keyword", "Keyword")				// field name
										, "id_content_keyword_base"					// field key
										, "tbl_content_keyword"				// out source table name
										, "id_content_keyword"						// out source field key
										, "keyword"						// out source field data
										, "id_content"									// out source field foreign
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							, array(
									"meta_desc"						// Field_name
									, "Meta Desc"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"image"					// Field_name
									, "Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_IMAGE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_image"			// out source table name
										, "id_content_image"					// out source field key
										, "id_content"								// out source field foreign
										, "image_url"								// out source field name
										, "info_sekolah_gambar"								// directory name for image
											)
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "png", "bmp", "gif", "swf")
											, array(
												array(
														"initial" 		=>	"crop"
														, "width" 		=>	150
														, "height"		=>  0
														, "type"		=> "crop"
													),
												array(
														"initial" 		=>	"admin"
														, "width" 		=>	80
														, "height"		=>  0
														, "type"		=> "crop"
														, "thumb_admin"	=> true
													),
												)
											)
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function info_extrakurikuler_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_content"					// Table Name
		, false										// Input Mode cross record
		, "0"										// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_content"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"judul"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"isi"						// Field_name
									, "Isi"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"tanggal"						// Field_name
									, "Tanggal"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"id_admin"						// Field_name
									, "Id_admin"					// Nama
									, $this->master->FIELD_VALUE_USER	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"id_kategori"						// Field_name
									, "Kategori"						// Text
									, array("3")	// Value method
									, array(							// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true								// Primary key
									, false								// view
									, false								// edit
									, null								// source
									, $this->master->VALIDATION_NONE	// validation
									, false								// filter
									, null								// filter source
									, null
									, array(
												$this->master->OPERATOR_EQUAL,	// operand
												"3",								// value
											),
									)
							, array(
									"keyword"					// Field_name
									, "Keyword"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_OUT_TABLE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_keyword_base"			// table name
										, array("keyword", "Keyword")				// field name
										, "id_content_keyword_base"					// field key
										, "tbl_content_keyword"				// out source table name
										, "id_content_keyword"						// out source field key
										, "keyword"						// out source field data
										, "id_content"									// out source field foreign
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							, array(
									"meta_desc"						// Field_name
									, "Meta Desc"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"image"					// Field_name
									, "Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_IMAGE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_image"			// out source table name
										, "id_content_image"					// out source field key
										, "id_content"								// out source field foreign
										, "image_url"								// out source field name
										, "info_extrakurikuler_gambar"								// directory name for image
											)
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "png", "bmp", "gif", "swf")
											, array(
												array(
														"initial" 		=>	"crop"
														, "width" 		=>	150
														, "height"		=>  0
														, "type"		=> "crop"
													),
												array(
														"initial" 		=>	"admin"
														, "width" 		=>	80
														, "height"		=>  0
														, "type"		=> "crop"
														, "thumb_admin"	=> true
													),
												)
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function konten_keyword_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_content_keyword_base"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_content_keyword_base"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"keyword"					// Field_name
									, "Kode"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, $this->master->INPUT_TYPE_MEDIUM_TABLE	// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}

	public function konten_kategori_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_content_category_base"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_content_category_base"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"category"					// Field_name
									, "Kategori"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, $this->master->INPUT_TYPE_MEDIUM_TABLE	// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	public function support_online_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_support_online"						// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_support_online"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"name"						// Field_name
									, "Nama"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"id_ym"						// Field_name
									, "Yahoo Messenger"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"image_file"				// Field_name
									, "Picture"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("support_online")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
/*
												array(
														"initial" 	=>	"crop"
														, "width" 	=>	72
														, "height"	=>  0
														, "type"	=> "crop"
													),
*/													
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	80
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
											)					// validation
									, false						// filter
									, null						// filter source 
								)
								, array(
										"category"						// Field_name
										, "Keterangan"					// Nama
										, $this->master->FIELD_VALUE_DEFAULT	// Value method
										, array(					// Input type
												$this->master->INPUT_TYPE_TEXT
												, array(
														"MAX_LENGTH" 	=> 100
														, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
												)
										)
										, false						// Primary key
										, true						// view
										, true						// edit
										, null						// source
										, array($this->master->VALIDATION_NOTNULL
										)					// validation
										, false						// filter
										, array(
										)						// filter source
								)
				
/*
							, array(
									"category"						// Field_name
									, "Kategori"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array("category"					// field
											, "id_support_online_category"		// id 
											, "tbl_support_online_category"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_support_online_category", "id_support_online_category")
											)					// validation
									, false						// filter
									, array()		// filter source 
								)
								*/
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function kategori_support_online($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_support_online_category"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_support_online_category"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"category"						// Field_name
									, "Kategori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function kontak_kami_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, false										// Insert new record
				, false										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tblkontak"								// Table Name
				, false										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, $pageUrl									// modulename
		);
		$arrayField 	= array(
				array(
						"idkontak"					// Field_name
						, "ID"						// Text
						, $this->master->FIELD_VALUE_AUTO	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_HIDDEN
						)
						, true						// Primary key
						, false						// view
						, false						// edit
						, null						// source
						, $this->master->VALIDATION_NONE	// validation
						, false						// filter
						, null						// filter source
				)
				, array(
						"nama"						// Field_name
						, "Nama"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, false						// Primary key
						, true						// view
						, false						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"email"						// Field_name
						, "Email"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, false						// Primary key
						, true						// view
						, false						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"subjek"						// Field_name
						, "Subjek"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, false						// Primary key
						, true						// view
						, false						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"isi"						// Field_name
						, "Isi"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT_AREA
								, array(
											"ROWS" 	=> 10
											, "COLS"		=> $this->master->ATTR_SIZE_LONG
										)
								)
						, false						// Primary key
						, false						// view
						, false						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
/*
				, array(
						"baca"				// Field_name
						, "Baca"			// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_RADIO
						)
						, false						// Primary key
						, true				// view
						, true						// edit
						, array(array("y", "Yes")
								, array("n", "No")
						)
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_RADIO
								, null)						// filter source
				)
*/
		);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	public function front_banner_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_banner"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_banner"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"name"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
/*
							, array(
									"url"						// Field_name
									, "URL"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_URL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("Please insert http://"
											,"Ex. http://www.inolabs.net")
								)
*/								
								, array(
									"id_banner_category"						// Field_name
									, "Kategori"						// Text
									, array("1")	// Value method
									, array(							// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true								// Primary key
									, false								// view
									, false								// edit
									, null								// source
									, $this->master->VALIDATION_NONE	// validation
									, false								// filter
									, null								// filter source
									, null
									, array(
												$this->master->OPERATOR_EQUAL,	// operand
												"1",								// value
											),
									)
								, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"image"				// Field_name
									, "Banner Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("banner")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=> "front"
														, "width" 	=> $this->theme_setting['front_banner_sizes']['w']
														, "height"	=> $this->theme_setting['front_banner_sizes']['h']
														, "type"	=> "crop"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	120
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
												)				// resize
												, true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function sidebar_banner($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_banner"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_banner"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"name"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"url"						// Field_name
									, "URL"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_URL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("Please insert http://"
											,"Ex. http://www.inolabs.net")
								)
								, array(
									"id_banner_category"						// Field_name
									, "Kategori"						// Text
									, array("2")	// Value method
									, array(							// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true								// Primary key
									, false								// view
									, false								// edit
									, null								// source
									, $this->master->VALIDATION_NONE	// validation
									, false								// filter
									, null								// filter source
									, null
									, array(
												$this->master->OPERATOR_EQUAL,	// operand
												"2",								// value
											),
									)
								, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("y", "Yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"image"				// Field_name
									, "Banner Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("banner")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=> "resize"
														, "width" 	=> $this->theme_setting['sidebar_banner_width']
														, "height"	=> 0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
												)				// resize
												, true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function galeri_admin($pageTitle, $pageUrl)
	{
		$template_path		= $this->config->item('base_url')."application/views/template/";
		$theme_name			= $this->mod_general->get_template_name($template_path."theme_name.txt");
		$theme_path			= $template_path.$theme_name."/";
		$path 	= $theme_path."theme_setting.txt";
		$banner_size	=  $this->mod_general->get_banner_size($path);
		
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_galeri"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_galeri"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"judul"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"keterangan"						// Field_name
									, "Keterangan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 10
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"id_kategori_galeri"						// Field_name
									, "Kategori Galeri"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array("kategori"					// field
											, "id_kategori_galeri"		// id 
											, "tbl_kategori_galeri"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_kategori_galeri", "id_kategori_galeri")
											)					// validation
									, true						// filter
									, array()		// filter source 
								)
							, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Yes")
											, array("0", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"gambar"				// Field_name
									, "Gambar"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("galeri")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"small"
														, "width" 	=>	600
														, "height"	=>  0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	180
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
											, true				// delete source
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}

	public function kategori_galeri_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_kategori_galeri"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_kategori_galeri"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kategori"						// Field_name
									, "Kategori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"sampul"				// Field_name
									, "Sampul"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("kategori_galeri")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"crop"
														, "width" 	=>	200
														, "height"	=>  0
														, "type"	=> "crop"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	80
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
												, true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function kategori_support_online_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_support_online_category"								// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_support_online_category"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"category"						// Field_name
									, "Kategori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function kalender_akademik_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_academic_calender"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		);
		$arrayField 	= array(
							array(
									"id_calender"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"calender_name"						// Field_name
									, "Nama Kegiatan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
/*
							, array(
									"color"				// Field_name
									, "Warna"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array
										(
											array("FF3300-000000", "Merah-Hitam"),
											array("FFE500-000000", "Kuning-Hitam"),
											array("FF7F00-000000", "Orange-Hitam"),
											array("4ED900-000000", "Hijau-Hitam"),
											array("0078CC-000000", "Biru-Hitam"),
											array("000000-FFFFFF", "Hitam-Putih"),
											array("CC00BD-000000", "Ungu-Hitam"),
											array("FFFFFF-000000", "Putih-Hitam"),
											array("FF3300-FFFFFF", "Merah-Putih"),
										)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array
										(
											$this->master->INPUT_TYPE_SELECT
										)						// filter source 
									, array
										(
											"Format : background-text"
										)						// note
									
								)
*/
							, array(
									"ket"						// Field_name
									, "Ket"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 3
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
						);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array(
												"Detail Alokasi Waktu",
												array
												(
													array
													(
															"tgl_mulai"							// Field_name
															, "Tanggal Mulai"							// Text
															, $this->master->FIELD_VALUE_DATE	// Value method
															, array(							// Input type
																	$this->master->INPUT_TYPE_TEXT
																	, array(
																			"MAX_LENGTH" 	=> 10
																			, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
																			)
																	)
															, null								// source
															, $this->master->VALIDATION_NOTNULL // validation
															, array("Format YYYY/MM//DD"
																	, "Ex. 2010/01/20, 2011/12/01.")
													),
													array
													(
															"tgl_selesai"							// Field_name
															, "Tanggal Selesai"					// Text
															, $this->master->FIELD_VALUE_DATE	// Value method
															, array(							// Input type
																	$this->master->INPUT_TYPE_TEXT
																	, array(
																			"MAX_LENGTH" 	=> 10
																			, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
																			)
																	)
															, null								// source
															, $this->master->VALIDATION_NOTNULL // validation
															, array("Format YYYY/MM//DD"
																	, "Ex. 2010/01/20, 2011/12/01.")
													),
												),
												"tbl_academic_calender_day",				// table name
												"id_academic_calender_day",							// field id
												"id_calender",								// field foreign
										);
					
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function data_kategori_penilaian_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_kategori_nilai"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"id_kategori_nilai"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kategori"						// Field_name
									, "Kategori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function agama_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_agama"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"id_agama"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"agama"						// Field_name
									, "Agama"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
			
	public function tahun_ajaran_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_tahun_ajaran"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"id_tahun_ajaran"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"tahun_ajaran"						// Field_name
									, "Tahun Ajaran"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 9
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									,array("Format : YYYY/YYYY"
											, "Ex. 2011/2012")
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
		
	public function setting_semester_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, false										// Insert new record
		, false										// Edit Record
		, false										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_semester"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"id_semester"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"semester"						// Field_name
									, "Semester"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
			
	public function data_kelas_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_kelas"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"kode_kelas"					// Field_name
									, "Kode"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 50
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
												)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"nama_kelas"						// Field_name
									, "Nama Kelas"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
/*
							, array(
									"tingkat"				// Field_name
									, "Kelas"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(array("1")
											, array("2")
											, array("3")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source 
								)
							, array(
									"kode_jurusan"						// Field_name
									, "Jurusan"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array("nama_jurusan"						// field
											, "kode_jurusan"						// id 
											, "tbl_jurusan"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_NONE
											, array("tbl_jurusan", "kode_jurusan")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
*/								
							, array(
									"keterangan"						// Field_name
									, "Keterangan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
								);
		$arrayDeleteRequired	= array();
	$arraySubInput			= array(
/*												"Sub Input for Kelas",
												array
												(
													array
													( 
														"tahun_ajaran"								// Field_name
														, "Tahun Ajaran"							// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_SIMPLE_TABLE
															)
														, array
															(
																"tahun_ajaran"						// field
																, "id_tahun_ajaran"						// id 
																, "tbl_tahun_ajaran"		// table source						
															)								// source
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("tbl_tahun_ajaran", "id_tahun_ajaran")
															) // validation
													),
/*
													array
													( 
														"id_semester"								// Field_name
														, "Semester"							// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_SIMPLE_TABLE
															)
														, array
															(
																"semester"						// field
																, "id_semester"						// id 
																, "tbl_semester"		// table source						
															)								// source
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("tbl_semester", "id_semester")
															) // validation
													),
													array
													( 
														"kode_jurusan"								// Field_name
														, "Jurusan"							// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_SIMPLE_TABLE
															)
														, array
															(
																"nama_jurusan"						// field
																, "kode_jurusan"						// id 
																, "tbl_jurusan"		// table source						
															)								// source
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("tbl_jurusan", "kode_jurusan")
															) // validation
													),
													array
													(
															"kuota"							// Field_name
															, "Maksimal Kuota"							// Text
															, $this->master->FIELD_VALUE_DEFAULT	// Value method
															, array(							// Input type
																	$this->master->INPUT_TYPE_TEXT
																	, array(
																			"MAX_LENGTH" 	=> 200
																			, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
																			)
																	)
															, null								// source
															, $this->master->VALIDATION_NUMERIC // validation
													),
*/												
/*												),

												"tbl_kelas_detail",				// table name
												"id_kelas_detail",							// field id
												"kode_kelas",								// field foreign
*/														
										);
					
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	public function data_kelas_pertahun_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_kelas_detail"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"id_kelas_detail"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kode_kelas"						// Field_name
									, "Kelas"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama_kelas"						// field
											, "kode_kelas"						// id 
											, "tbl_kelas"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_kelas", "kode_kelas")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"tahun_ajaran"						// Field_name
									, "Tahun_Ajaran"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("tahun_ajaran"						// field
											, "id_tahun_ajaran"						// id 
											, "tbl_tahun_ajaran"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_tahun_ajaran", "id_tahun_ajaran")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"semester"				// Field_name
									, "Semester"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("1")
											, array("2")
											, array("3")
											, array("4")
											, array("5")
											, array("6")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source 
								)
							);
		$arrayDeleteRequired	= array();
	$arraySubInput			= array(
												"Sub Input for Kelas",
												array
												(
													array
													( 
														"nim"								// Field_name
														, "Siswa"							// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_MEDIUM_TABLE
															)
														, array
															(
																array(array("nama","na", true, "Nama Siswa")
																		, array("jenis_kelamin", "jk", false, "Jenis Kelamin"
																				, 
																					array(array("1", "Laki-laki"),array("0", "Perempuan"))
																				)
																		, array("alamat", "al", false, "Alamat")
																	)										// field
																, "nim"									// id 
																, array("tbl_siswa", "s")	// table_name						
																, array
																	(
																	)
															)
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("tbl_siswa", "nim")
															) // validation
													),
												),
												"tbl_kelas_mahasiswa",				// table name
												"id_kelas_siswa",							// field id
												"id_kelas_detail",								// field foreign
										);
					
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_mahasiswa_mengulang_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, true										// Insert new record
				, true										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tbl_kelas_detail"					// Table Name
				, false										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, 'sample'									// modulename
		);
		$arrayField 	= array(
				array(
						"id_kelas_detail"					// Field_name
						, "ID"						// Text
						, $this->master->FIELD_VALUE_AUTO	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_HIDDEN
						)
						, true						// Primary key
						, false						// view
						, false						// edit
						, null						// source
						, $this->master->VALIDATION_NONE	// validation
						, false						// filter
						, null						// filter source
				)
				, array(
						"kode_kelas"						// Field_name
						, "Kelas"					// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_SIMPLE_TABLE
								, array()
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array("nama_kelas"						// field
								, "kode_kelas"						// id
								, "tbl_kelas"		// table source
								, array(
								)
						)
						, array($this->master->VALIDATION_MATCH_TABLE
								, array("tbl_kelas", "kode_kelas")
						)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source
				)
				, array(
						"tahun_ajaran"						// Field_name
						, "Tahun_Ajaran"					// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_SIMPLE_TABLE
								, array()
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array("tahun_ajaran"						// field
								, "id_tahun_ajaran"						// id
								, "tbl_tahun_ajaran"		// table source
								, array(
								)
						)
						, array($this->master->VALIDATION_MATCH_TABLE
								, array("tbl_tahun_ajaran", "id_tahun_ajaran")
						)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source
				)
				, array(
						"semester"				// Field_name
						, "Semester"				// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_SELECT
								, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array(array("1")
								, array("2")
								, array("3")
								, array("4")
								, array("5")
								, array("6")
						)
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_SELECT)		// filter source
				)
		);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array(
				"Sub Input for Kelas",
				array
				(
						array
						(
								"nim"								// Field_name
								, "Siswa"							// Text
								, $this->master->FIELD_VALUE_DEFAULT	// Value method
								, array
								(							// Input type
										$this->master->INPUT_TYPE_MEDIUM_TABLE
								)
								, array
								(
										array(array("nama","na", true, "Nama Siswa")
												, array("jenis_kelamin", "jk", false, "Jenis Kelamin"
														,
														array(array("1", "Laki-laki"),array("0", "Perempuan"))
												)
												, array("alamat", "al", false, "Alamat")
										)										// field
										, "nim"									// id
										, array("tbl_siswa", "s")	// table_name
										, array
										(
										)
								)
								, array
								(
										$this->master->VALIDATION_MATCH_TABLE
										, array("tbl_siswa", "nim")
								) // validation
						),
						array
						(
								"kode_mata_kuliah"						// Field_name
								, "Mata Kuliah"							// Text
								, $this->master->FIELD_VALUE_DEFAULT	// Value method
								, array
								(							// Input type
										$this->master->INPUT_TYPE_MEDIUM_TABLE
								)
								, array
								(
										array(
												array("mata_kuliah","mk", true, "Mata Kuliah")
										)										// field
										, "kode_mata_kuliah"									// id
										, array("tbl_mata_kuliah", "tmk")	// table_name
										, array
										(
										)
								)
								, array
								(
										$this->master->VALIDATION_MATCH_TABLE
										, array("tbl_mata_kuliah", "kode_mata_kuliah")
								) // validation
						),
						array(
									"nilai"						// Field_name
									, "Nilai"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 2
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
						),
				),
				"tbl_kelas_mahasiswa_matkul",				// table name
				"id_kelas_mahasiswa_matkul",							// field id
				"id_kelas_detail",								// field foreign
		);
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_mata_kuliah_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_mata_kuliah"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"kode_mata_kuliah"					// Field_name
									, "Kode"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_PRIMARY
											, array(
													"MAX_LENGTH" 	=> 50
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
												)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"mata_kuliah"						// Field_name
									, "Nama Mata Kuliah"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							, array(
									"semester"				// Field_name
									, "Semester"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("1")
											, array("2")
											, array("3")
											, array("4")
											, array("5")
											, array("6")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source 
								)
							, array(
									"sks"						// Field_name
									, "SKS"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NUMERIC
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							, array(
									"t"						// Field_name
									, "Teori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 11
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NUMERIC
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							, array(
									"p"						// Field_name
									, "Praktek"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 11
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NUMERIC
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							, array(
									"pertemuan"						// Field_name
									, "Pertemuan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NUMERIC
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
					
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}

	public function jadwal_pelajaran_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_jadwal"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_jadwal"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kode_kelas"						// Field_name
									, "Kelas"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama_kelas"						// field
											, "kode_kelas"						// id 
											, "tbl_kelas"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_kelas", "kode_kelas")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"kode_mata_kuliah"						// Field_name
									, "Mata Kuliah"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("mata_kuliah"						// field
											, "kode_mata_kuliah"						// id 
											, "tbl_mata_kuliah"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_mata_kuliah", "kode_mata_kuliah")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"hari"				// Field_name
									, "Hari"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("senin", "Senin")
											, array("selasa", "Selasa")
											, array("rabu", "Rabu")
											, array("kamis", "Kamis")
											, array("jumat", "Jum'at")
											, array("sabtu", "Sabtu")
											, array("minggu", "Minggu")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source 
								)
							, array(
									"jam_mulai"						// Field_name
									, "Jam Mulai"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 5
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_TIME
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("Format HH:MM"
											, "Ex. 08:15, 21:30.")
								)
							, array(
									"jam_selesai"						// Field_name
									, "Jam Selesai"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 5
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_TIME
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("Format HH:MM"
											, "Ex. 08:15, 21:30.")
								)
							, array(
									"tahun_ajaran"						// Field_name
									, "Tahun_Ajaran"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("tahun_ajaran"						// field
											, "id_tahun_ajaran"						// id 
											, "tbl_tahun_ajaran"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_tahun_ajaran", "id_tahun_ajaran")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"semester"				// Field_name
									, "Semester"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("1")
											, array("2")
											, array("3")
											, array("4")
											, array("5")
											, array("6")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source 
								)
						);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_guru_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_dosen"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"kode_dosen"					// Field_name
									, "Kode"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_PRIMARY
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"nama"						// Field_name
									, "Nama"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
/*				
							, array(
									"nip"						// Field_name
									, "NIP"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									, array("Boleh Dikosongi")
								)
*/								
							, array(
									"jenis_kelamin"				// Field_name
									, "Jenis Kelamin"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Laki-laki")
											, array("0", "Perempuan")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"tempat_lahir"						// Field_name
									, "Tempat Lahir"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"tanggal_lahir"						// Field_name
									, "Tanggal Lahir"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 10
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_DATE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"agama"				// Field_name
									, "Agama"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
									)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(array("Islam")
											, array("Kristen")
											, array("Hindu")
											, array("Budha")
											, array("Katolik")
											, array("Lainnya")
									)
									, array($this->master->VALIDATION_NOTNULL
									)					// validation
									, false						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source
							)
							, array(
									"alamat"		// Field_name
									, "Alamat"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 400
													, "SIZE"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"no_hp"						// Field_name
									, "No Handphone"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"email"		// Field_name
									, "Email"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_EMAIL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"website"		// Field_name
									, "Website"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_URL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("format website : http://alamat.com")
								)
							, array(
									"facebook"						// Field_name
									, "Alamat Facebook"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									, array("Format : http://www.facebook.com/id_facebook"
											,"Contoh =>"
											, "http://www.facebook.com/9797927368"
											, "http://www.facebook.com/inolabs"
											)
								)
							, array(
									"twitter"						// Field_name
									, "Alamat Twitter"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									, array("Format : http://www.twitter.com/twitter"
											,"Contoh =>"
											, "http://www.twitter.com/9797927368"
											, "http://www.twitter.com/inolabs"
											)
								)
							, array(
									"pass"		// Field_name
									, "Password"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_PASSWORD
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array ()					// filter source
									, array(
											"Kosongkan jika tidak ingin mengubah."
										)						
									)
							, array(
									"status"				// Field_name
									, "Status Dosen"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Aktif")
											, array("0", "Tidak")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"photo"				// Field_name
									, "Poto"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("dosen")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=> "resize"
														, "width" 	=> 200
														, "height"	=> 0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
												)				// resize
												, true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
		$arraySubInput_			= array(
												"Sub Input for data Sample",
												array
												(
													array
													( 
														"id_kelas_detail"								// Field_name
														, "Detail Kelas"								// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_ADVANCE_TABLE
															)
														, array
															(
																array()							// field
																, "id_kelas_detail"						// id 
																, array("tbl_kelas_detail", "tkd")	// table_name						
																, array
																	(
																	array(
																		array("tbl_kelas","ke")	// table join
																		, array("tbl_kelas_detail","tkd")				// table source
																		, "kode_kelas"									// field join
																		, "kode_kelas"									// field source
																		, array(array("nama_kelas","",true, "Nama Kelas"))					// field join
																		)
																	, array(
																		array("tbl_tahun_ajaran","ta")	// table join
																		, array("tbl_kelas_detail","tkd")				// table source
																		, "id_tahun_ajaran"									// field join
																		, "tahun_ajaran"									// field source
																		, array(array("tahun_ajaran","",true, "Tahun Ajaran"))					// field join
																		)
																	)
																, array
																	(										// filter field
																	array("Tahun Ajaran"
																		, array("tbl_kelas_detail", "kd")
																		, "tahun_ajaran"
																		, $this->master->INPUT_TYPE_SIMPLE_TABLE
																		, array("tahun_ajaran"						// field
																				, "id_tahun_ajaran"						// id 
																				, "tbl_tahun_ajaran"		// table source						
																				)
																		)
																	)							// filter field
															)
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("sample_table_select_data", "id_opsi")
															) // validation
													),
													array
													( 
														"kode_mata_kuliah"								// Field_name
														, "Mata Kuliah"							// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array
															(							// Input type
																$this->master->INPUT_TYPE_SIMPLE_TABLE
															)
														, array
															(
																"mata_kuliah"						// field
																, "kode_mata_kuliah"						// id 
																, "tbl_mata_kuliah"		// table source						
															)								// source
														, array
															(
																$this->master->VALIDATION_MATCH_TABLE
																, array("tbl_mata_kuliah", "kode_mata_kuliah")
															) // validation
													),
												),
												"tbl_tugas_mengajar",				// table name
												"id_tugas_mengajar",							// field id
												"kode_guru",								// field foreign
										);
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_jurusan_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_jurusan"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, 'sample'									// modulename
		);
		$arrayField 	= array(
							array(
									"kode_jurusan"					// Field_name
									, "Kode"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 50
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
												)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"nama_jurusan"						// Field_name
									, "Nama Jurusan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)
							, array(
									"keterangan"						// Field_name
									, "Keterangan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									)

									, array(
											"logo"				// Field_name
											, "Logo"				// Text
											, $this->master->FIELD_VALUE_DEFAULT	// Value method
											, array(					// Input type
													$this->master->INPUT_TYPE_IMAGE
													, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
											, false						// Primary key
											, false						// view
											, true						// edit
											, array("logo")
											, array($this->master->VALIDATION_FILE_TYPE
													, array("jpg", "jpeg", "png", "bmp")
													, array(
															array(
																	"initial" 	=>	"small"
																	, "width" 	=>	200
																	, "height"	=>  0
																	, "type"	=> "resize"
															),
															array(
																	"initial" 	=>	"admin"
																	, "width" 	=>	100
																	, "height"	=>  0
																	, "type"	=> "resize"
																	, "thumb_admin"	=> true
															),
													)				// resize
													, true
											)					// validation
											, false						// filter
											, null						// filter source
									)
				
									
								);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_siswa_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_siswa"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"nim"					// Field_name
									, "NIM"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 50
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										)						// filter source
								)
							, array(
									"nama"						// Field_name
									, "Nama"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"jenis_kelamin"				// Field_name
									, "Jenis Kelamin"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Laki-laki")
											, array("0", "Perempuan")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"tempat_lahir"						// Field_name
									, "Tempat Lahir"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"tanggal_lahir"						// Field_name
									, "Tanggal Lahir"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 10
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_DATE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"agama"				// Field_name
									, "Agama"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
									)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(array("Islam")
											, array("Kristen")
											, array("Hindu")
											, array("Budha")
											, array("Katolik")
											, array("Lainnya")
									)
									, array($this->master->VALIDATION_NOTNULL
									)					// validation
									, false						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source
							)
							, array(
									"alamat"		// Field_name
									, "Alamat"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 400
													, "SIZE"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"no_hp"						// Field_name
									, "No Handphone"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"email"		// Field_name
									, "Email"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_EMAIL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"website"		// Field_name
									, "Website"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_URL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
									, array("format website : http://alamat.com")
								)
							, array(
									"facebook"						// Field_name
									, "Alamat Facebook"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									, array("Format : http://www.facebook.com/id_facebook"
											,"Contoh =>"
											, "http://www.facebook.com/9797927368"
											, "http://www.facebook.com/inolabs"
											)
								)
							, array(
									"twitter"						// Field_name
									, "Alamat Twitter"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
									, array("Format : http://www.twitter.com/twitter"
											,"Contoh =>"
											, "http://www.twitter.com/9797927368"
											, "http://www.twitter.com/inolabs"
											)
								)
							, array(
									"pass"		// Field_name
									, "Password"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_PASSWORD
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array ()					// filter source
									, array(
											"Kosongkan jika tidak ingin mengubah."
										)						
									)
							, array(
									"angkatan_tahun"						// Field_name
									, "Angkatan Tahun"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 15
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"kode_jurusan"						// Field_name
									, "Program Studi"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama_jurusan"						// field
											, "kode_jurusan"						// id 
											, "tbl_jurusan"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_jurusan", "kode_jurusan")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"status"				// Field_name
									, "Status Siswa"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Aktif")
											, array("0", "Tidak")
											)
									, array($this->master->VALIDATION_NONE
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"photo"				// Field_name
									, "Poto"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array("siswa")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"small"
														, "width" 	=>	200
														, "height"	=>  0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "resize"
														, "thumb_admin"	=> true
													),
												)				// resize
												, true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function periode_pendaftaran($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, true										// Insert new record
				, true										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tbl_periode_pendaftaran"					// Table Name
				, false										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
						, array(
						"periode"						// Field_name
						, "Periode"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, false						// Primary key
						, true						// view
						, false						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"tanggal_mulai"						// Field_name
						, "Tanggal Mulai"					// Nama
						, $this->master->FIELD_VALUE_DATE	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 10
										, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
								)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, null						// source
						, array($this->master->VALIDATION_DATE
						)					// validation
						, false						// filter
						, array(
						)						// filter source
				)
				, array(
						"tanggal_akhir"						// Field_name
						, "Tanggal Akhir"					// Nama
						, $this->master->FIELD_VALUE_DATE	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 10
										, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
								)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, null						// source
						, array($this->master->VALIDATION_DATE
						)					// validation
						, false						// filter
						, array(
						)						// filter source
				)
			);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	
	public function tumedos($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_tugas_mengajar"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_tugas_mengajar"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kode_dosen"						// Field_name
									, "Dosen"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MEDIUM_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(
											array(array("kode_dosen","ni", true, "Kode Dosen")
												, array("nama","na", true, "Nama Dosen")
//												, array("jenis_kelamin", "jk", false, "Jenis Kelamin"
//													, array(array("1", "Laki-laki"),array("0", "Perempuan"))
//														)
//												, array("alamat", "al", false, "Alamat")
												)										// field
											, "kode_dosen"									// id 
											, array("tbl_dosen", "g")	// table_name						
											, array()
										)
										, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_dosen", "kode_dosen")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"id_kelas_detail"				// Field_name
									, "Kelas Detail"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_ADVANCE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(
											array()							// field
											, "id_kelas_detail"						// id 
											, array("tbl_kelas_detail", "kd")	// table_name						
											, array(
												array(
													array("tbl_kelas","ke")	// table join
													, array("tbl_kelas_detail","kd")				// table source
													, "kode_kelas"									// field join
													, "kode_kelas"									// field source
													, array(array("nama_kelas","",true, "Nama Kelas"))					// field join
													)
												, array(
													array("tbl_tahun_ajaran","ta")	// table join
													, array("tbl_kelas_detail","kd")				// table source
													, "id_tahun_ajaran"									// field join
													, "tahun_ajaran"									// field source
													, array(array("tahun_ajaran","",true, "Tahun Ajaran"))					// field join
													)
												)
											, array(										// filter field
													array("Tahun Ajaran"
														, array("tbl_kelas_detail", "kd")
														, "tahun_ajaran"
														, $this->master->INPUT_TYPE_SIMPLE_TABLE
														, array("tahun_ajaran"						// field
																, "id_tahun_ajaran"						// id 
																, "tbl_tahun_ajaran"		// table source						
																)
														)
												)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_kelas_detail","id_kelas_detail")
											)					// validation
									, true						// filter
									, null						// filter source 
								)
							, array(
									"kode_mata_kuliah"						// Field_name
									, "Mata Kuliah"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("mata_kuliah"						// field
											, "kode_mata_kuliah"						// id 
											, "tbl_mata_kuliah"		// table source						
											, array()
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_mata_kuliah", "kode_mata_kuliah")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function input_nilai_mahasiswa_transfer_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, false										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_nilai_mahasiswa_transfer"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_nilai_mahasiswa_transfer"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
									)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
							)
							, array(
									"nim"						// Field_name
									, "Siswa"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MEDIUM_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(
											array(array("nim","ni", true, "NIM")
												, array("nama","na", true, "Nama Siswa")
												)										// field
											, "nim"									// id 
											, array("tbl_siswa", "s")	// table_name						
											, array()
										)
										, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_siswa", "nim")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							
							, array(
									"tahun_ajaran"						// Field_name
									, "Tahun Ajaran"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
/*									, array(
											array(array("tahun_ajaran","ta", true, "Tahun Ajaran")
												)										// field
											, "id_tahun_ajaran"									// id 
											, array("tbl_tahun_ajaran", "t")	// table_name						
											, array()
										)
*/
									, array("tahun_ajaran"				//field
											,"id_tahun_ajaran"			//id
											,"tbl_tahun_ajaran"			//table source
									)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_tahun_ajaran", "id_tahun_ajaran")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							
							, array(
									"semester"						// Field_name
									, "Semester"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
/*									, array(
											array(array("semester","se", true, "Semester")
												)										// field
											, "id_semester"									// id 
											, array("tbl_semester", "s")	// table_name						
											, array()
										)
*/
									, array("semester"				//field
											,"id_semester"			//id
											,"tbl_semester"			//table source
									)
											
										, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_semester", "id_semester")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							
							,array(
									"ip"					// Field_name
									, "Indeks Prestasi"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 20
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, true						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
									)						// filter source
							)
							
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array(
				"Sub Input for Input Nilai Mahasiswa Transfer",
				array
				(
						array(
									"mata_kuliah"						// Field_name
									, "Mata Kuliah"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
						),
						array(
									"nilai"						// Field_name
									, "Nilai"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 50
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
						),
				),
				"tbl_detail_nilai_mahasiswa_transfer",				// table name
				"id_detail_nilai_mahasiswa_transfer",							// field id
				"id_nilai_mahasiswa_transfer",								// field foreign
		);
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function edit_halaman_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_page"					// Table Name
		, false										// Input Mode cross record
		, "0"										// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_page"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"title"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"keterangan"						// Field_name
									, "Isi"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"id_parent"						// Field_name
									, "Parent"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("title"					// field
											, "id_page"		// id 
											, "tbl_page"		// table source						
											, array(
													array(
														"id_parent",					// field name
														$this->master->OPERATOR_EQUAL,	// operand
														"0",								// value
														),
													)
											)
									, array($this->master->VALIDATION_NONE
											, array("tbl_page", "id_page")
											)					// validation
									, false						// filter
									, array()		// filter source 
								)
/*							, array(
									"meta_desc"						// Field_name
									, "Meta Desc"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)

								, array(
									"keyword"					// Field_name
									, "Keyword"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_OUT_TABLE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_keyword_base"			// table name
										, array("keyword", "Keyword")				// field name
										, "id_keyword_base"					// field key
										, "tbl_page_keyword"				// out source table name
										, "id_page_keyword"						// out source field key
										, "keyword"						// out source field data
										, "kode_page"									// out source field foreign
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, null						// filter source 
								)
*/
/*
							, array(
									"image"				// Field_name
									, "Gambar"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_IMAGE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("page")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "jpeg", "png", "bmp")
											, array(
												array(
														"initial" 	=>	"small"
														, "width" 	=>	300
														, "height"	=>  0
														, "type"	=> "resize"
													),
												array(
														"initial" 	=>	"admin"
														, "width" 	=>	100
														, "height"	=>  0
														, "type"	=> "crop"
														, "thumb_admin"	=> true
													),
												)				// resize
											, true				// delete source
											)					// validation
									, false						// filter
									, null						// filter source 
								)
*/
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function kategori_admin_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_admin_category"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_admin_category"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"category"						// Field_name
									, "Kategori"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array(
									array(
										"tbl_admin_user"	// Table related
										, "id_category"				// field related
										, "Data User"			// Init
										)
									);
		$arraySubInput			= array(
												"Sub Input",
												array
												(
													array(
														"id_menu"						// Field_name
														, "Menu"					// Text
														, $this->master->FIELD_VALUE_DEFAULT	// Value method
														, array(					// Input type
																$this->master->INPUT_TYPE_SIMPLE_TABLE
																, array()
																)
														, array("title"						// field
																, "id_menu"						// id 
																, "tbl_menu_cms"		// table source						
																, array(
																		array(
																			"user_otority",					// field name
																			$this->master->OPERATOR_EQUAL,	// operand
																			"admin",								// value
																			),
																		array(
																			"parent",					// field name
																			$this->master->OPERATOR_NOT_EQUAL,	// operand
																			"0",								// value
																			),
																		)
																)
														, array($this->master->VALIDATION_MATCH_TABLE
																, array("tbl_menu_cms", "id_menu")
																)					// validation
													)
												),
												"tbl_admin_category_akses",				// table name
												"id_admin_category_akses",							// field id
												"id_admin_category",								// field foreign
										);			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function admin_user_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_admin_user"							// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_admin_user"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							/*
							,array(
									"id_coba"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							*/
							, array(
									"user_name"						// Field_name
									, "User Name"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"user_pass"						// Field_name
									, "User Password"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_PASSWORD
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array ()					// filter source
									, array(
											"Kosongkan jika tidak ingin mengubah."
										)						
								)
							, array(
									"user_email"						// Field_name
									, "User Email"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_EMAIL
											)					// validation
									, false						// filter
									, array()						// filter source
								)
							, array(
									"active"				// Field_name
									, "Aktif"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("y", "yes")
											, array("n", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"id_category"						// Field_name
									, "Kategori"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("category"						// field
											, "id_admin_category"						// id 
											, "tbl_admin_category"		// table source						
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_admin_category", "id_admin_category")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	// Data Guru
	
	public function upload_materi_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_materi"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_materi_upload"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kode_dosen"					// Field_name
									, "Dosen"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama"						// field
											, "kode_dosen"						// id 
											, "tbl_dosen"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_dosen", "kode_dosen")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
									)
							, array(
									"kode_jurusan"						// Field_name
									, "Jurusan"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array("nama_jurusan"						// field
											, "kode_jurusan"						// id 
											, "tbl_jurusan"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_jurusan", "kode_jurusan")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"kode_mata_kuliah"						// Field_name
									, "Mata Kuliah"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("mata_kuliah"						// field
											, "kode_mata_kuliah"						// id 
											, "tbl_mata_kuliah"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_mata_kuliah", "kode_mata_kuliah")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"judul"						// Field_name
									, "Judul File"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"keterangan"						// Field_name
									, "Keterangan"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA
											, array(
													"ROWS" 			=> 5
													, "COLS"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
/*
							, array(
									"file_upload"						// Field_name
									, "Upload"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 400
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_URL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
*/
							, array(
									"file_upload"				// Field_name
									, "Upload"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_FILE
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("sample_upload")
									, array($this->master->VALIDATION_FILE_TYPE
											, array("zip", "rar", "exe", "psd", "pdf")
											)					// validation
									, false						// filter
									, null						// filter source 
									, array("File yang diijinkan (zip, rar, exe, psd, pdf)")
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function elearning_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_elearning"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_elearning"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"judul"						// Field_name
									, "Judul"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 200
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"isi"						// Field_name
									, "Isi"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT_AREA_PLUS_EDITOR
											, array(
													"ROWS" 	=> 6
													, "COLS"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"kode_mata_kuliah"						// Field_name
									, "Mata Kuliah"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("mata_kuliah"						// field
											, "kode_mata_kuliah"						// id 
											, "tbl_mata_kuliah"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_mata_kuliah", "kode_mata_kuliah")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"tanggal"						// Field_name
									, "Tanggal"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													)
											)
									, false						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"kode_dosen"					// Field_name
									, "Dosen"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama"						// field
											, "kode_dosen"						// id 
											, "tbl_dosen"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_dosen", "kode_dosen")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
									)
							, array(
									"publish"				// Field_name
									, "Publish"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array(array("1", "Yes")
											, array("0", "No")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
/*
								, array(
									"keyword"					// Field_name
									, "Keyword"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_OUT_TABLE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_content_keyword_base"			// table name
										, array("keyword", "Keyword")				// field name
										, "id_content_keyword_base"					// field key
										, "tbl_content_keyword"				// out source table name
										, "id_content_keyword"						// out source field key
										, "keyword"						// out source field data
										, "id_content"									// out source field foreign
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, null						// filter source 
								)
*/
							, array(
									"image"					// Field_name
									, "Image"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_MULTIPLE_VALUE_IMAGE											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(
										"tbl_elearning_gambar"			// out source table name
										, "id_elearning_gambar"					// out source field key
										, "id_elearning"								// out source field foreign
										, "gambar"								// out source field name
										, "guru_learning"								// directory name for image
											)
									, array($this->master->VALIDATION_FILE_TYPE
											, array("jpg", "png", "bmp", "gif")
											, array(
												array(
														"initial" 		=>	"small"
														, "width" 		=>	250
														, "height"		=>  0
														, "type"		=> "resize"
													),
												array(
														"initial" 		=>	"admin"
														, "width" 		=>	80
														, "height"		=>  0
														, "type"		=> "resize"
														, "thumb_admin"	=> true
													),
												),				// resize
												true
											)					// validation
									, false						// filter
									, null						// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function penelitian_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
				$pageTitle									// page title
				, $pageUrl									// page url
				, true										// Insert new record
				, true										// Edit Record
				, true										// Delete Record
				, true										// Edit Record if not null
				, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
				,  "tbl_penelitian"					// Table Name
				, false										// Input Mode cross record
				, $this->loginIdUser						// id_user
				, ""										// akses
				, "application/views/upload/"				// upload folder
				, $this->config->item('base_url')			// base url
				, $this->data["engineTemplate"]				// adminPath
				, $pageUrl									// modulename
		);
		$arrayField 	= array(
				array(
						"id"					// Field_name
						, "ID"						// Text
						, $this->master->FIELD_VALUE_AUTO	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_HIDDEN
						)
						, true						// Primary key
						, false						// view
						, false						// edit
						, null						// source
						, $this->master->VALIDATION_NONE	// validation
						, false						// filter
						, null						// filter source
				)
				, array(
						"judul_penelitian"						// Field_name
						, "Judul"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
								)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, true						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"kegiatan"						// Field_name
						, "Isi"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT_AREA
								, array(
										"ROWS" 	=> 6
										, "COLS"		=> $this->master->ATTR_SIZE_LONG
								)
						)
						, false						// Primary key
						, false						// view
						, true						// edit
						, null						// source
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"kode_dosen"						// Field_name
						, "Kode Dosen"					// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_MEDIUM_TABLE
								, array()
								)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array(
								array(array("kode_dosen","kd", true, "Kode Dosen")
									, array("nama","na", true, "Nama Dosen")
									)										// field
								, "kode_dosen"									// id 
								, array("tbl_dosen", "d")	// table_name						
								, array()
							)
							, array($this->master->VALIDATION_MATCH_TABLE
								, array("tbl_dosen", "kode_dosen")
								)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
				)
				, array(
						"tahun"						// Field_name
						, "Tahun"					// Nama
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 200
										, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
								)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, null						// source
						, array($this->master->VALIDATION_NUMERIC
						)					// validation
						, true						// filter
						, array(
								$this->master->INPUT_TYPE_TEXT
								, null
						)						// filter source
				)
				, array(
						"anggaran"				// Field_name
						, "Anggaran"			// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_RADIO
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array(array("APBN")
								, array("APBD")
								, array("Lain-lain")
						)
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, true						// filter
						, array($this->master->INPUT_TYPE_RADIO
								, null)						// filter source
				)
				, array(
						"jml_anggaran"				// Field_name
						, "Jumlah Anggaran"			// Text
						, $this->master->FIELD_VALUE_DEFAULT	// Value method
						, array(					// Input type
								$this->master->INPUT_TYPE_TEXT
								, array(
										"MAX_LENGTH" 	=> 25
										, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
								)
						)
						, false						// Primary key
						, true						// view
						, true						// edit
						, array($this->master->VALIDATION_NOTNULL
						)					// validation
						, false						// filter
						, array($this->master->INPUT_TYPE_RADIO
								, null)						// filter source
				)
		);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array(
				"Sub Input for Penelitian",
				array
				(
						array
						(
								"kode_dosen"								// Field_name
								, "Dosen"							// Text
								, $this->master->FIELD_VALUE_DEFAULT	// Value method
								, array
									(							// Input type
										$this->master->INPUT_TYPE_SIMPLE_TABLE
									)
/*
								, array(
											array(array("kode_dosen","ni", true, "Kode Dosen")
												, array("nama","na", true, "Nama Dosen")
//												, array("jenis_kelamin", "jk", false, "Jenis Kelamin"
//													, array(array("1", "Laki-laki"),array("0", "Perempuan"))
//														)
//												, array("alamat", "al", false, "Alamat")
												)										// field
											, "kode_dosen"									// id 
											, array("tbl_dosen", "g")	// table_name						
											, array()
										)
*/
								, array("nama"						// field
										, "kode_dosen"						// id 
										, "tbl_dosen"		// table source						
										)
								, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_dosen", "kode_dosen")
											)					// validation
								, true						// filter
								, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
							),
						array(
									"sebagai"						// Field_name
									, "Sebagai"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 70
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
						),
				),
				"tbl_penelitian_detail",				// table name
				"id_penelitian_detail",							// field id
				"id_penelitian",								// field foreign
		);
			
		$this->engineReturn = $this->master->generateSystem(
				$arraySetting
				, $arrayField
				, $arraySubInput
				, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function pengabdian_dosen_admin($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_pengabdian_dosen"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_pengabdian_dosen"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_AUTO	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NONE	// validation
									, false						// filter
									, null						// filter source
								)
							, array(
									"kode_dosen"					// Field_name
									, "Dosen"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama"						// field
											, "kode_dosen"						// id 
											, "tbl_dosen"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_dosen", "kode_dosen")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
									)
							, array(
									"pengabdian"						// Field_name
									, "Pengabdian"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 225
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function data_pmb($pageTitle, $pageUrl)
	{
		$arraySetting 	= array(
		$pageTitle									// page title
		, $pageUrl									// page url
		, true										// Insert new record
		, true										// Edit Record
		, true										// Delete Record
		, true										// Edit Record if not null
		, $this->master->PAGINATION_ADV_NEXT_PREV_NUMBER	// Pagination Type
		,  "tbl_data_pmb"					// Table Name
		, false										// Input Mode cross record
		, $this->loginIdUser						// id_user
		, ""										// akses
		, "application/views/upload/"				// upload folder
		, $this->config->item('base_url')			// base url
		, $this->data["engineTemplate"]				// adminPath
		, $pageUrl									// modulename
		);
		$arrayField 	= array(
							array(
									"id_data_pmb"					// Field_name
									, "ID"						// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_HIDDEN
											, array(
													"MAX_LENGTH" 	=> 11
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, true						// Primary key
									, false						// view
									, false						// edit
									, null						// source
									, $this->master->VALIDATION_NOTNULL	// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										)						// filter source
								)
							, array(
									"nama"						// Field_name
									, "Nama"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, true						// view
									, false						// edit
									, null						// source
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"jenis_kelamin"				// Field_name
									, "Jenis Kelamin"			// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_RADIO
											)
									, false						// Primary key
									, true				// view
									, true						// edit
									, array(array("1", "Laki-laki")
											, array("0", "Perempuan")
											)
									, array($this->master->VALIDATION_NOTNULL
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_RADIO
											, null)						// filter source 
								)
							, array(
									"tempat_lahir"						// Field_name
									, "Tempat Lahir"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"tgl_lahir"						// Field_name
									, "Tanggal Lahir"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 10
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_DATE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"agama"				// Field_name
									, "Agama"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
									)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(array("Islam")
											, array("Kristen")
											, array("Hindu")
											, array("Budha")
											, array("Katolik")
											, array("Lainnya")
									)
									, array($this->master->VALIDATION_NOTNULL
									)					// validation
									, false						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source
							)
							, array(
									"alamat"		// Field_name
									, "Alamat"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 225
													, "SIZE"		=> $this->master->ATTR_SIZE_LONG
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"telp"						// Field_name
									, "Telp"					// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 100
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										$this->master->INPUT_TYPE_TEXT
										, null
										)						// filter source
								)
							, array(
									"email"		// Field_name
									, "Email"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 225
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_EMAIL
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"sekolah_asal"		// Field_name
									, "Sekolah Asal"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 225
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"jenjang"				// Field_name
									, "Jenjang"				// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SELECT
											, array("SIZE" => $this->master->ATTR_SIZE_MEDIUM)
									)
									, false						// Primary key
									, false						// view
									, true						// edit
									, array(array("SMA")
											, array("STM")
											, array("MA")
											, array("Lainnya")
									)
									, array($this->master->VALIDATION_NOTNULL
									)					// validation
									, false						// filter
									, array($this->master->INPUT_TYPE_SELECT)		// filter source
							)
							, array(
									"nem"		// Field_name
									, "NEM"		// Nama
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 20
													, "SIZE"		=> $this->master->ATTR_SIZE_MEDIUM
													)
											)
									, false						// Primary key
									, false						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_NONE
											)					// validation
									, false						// filter
									, array ($this->master->INPUT_TYPE_TEXT
										, null)					// filter source
									)
							, array(
									"tgl_daftar"						// Field_name
									, "Tanggal Daftar"					// Nama
									, $this->master->FIELD_VALUE_DATE	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_TEXT
											, array(
													"MAX_LENGTH" 	=> 10
													, "SIZE"		=> $this->master->ATTR_SIZE_SHORT
													)
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, null						// source
									, array($this->master->VALIDATION_DATE
											)					// validation
									, false						// filter
									, array(
										)						// filter source
								)
							, array(
									"kode_jurusan"						// Field_name
									, "Program Studi"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("nama_jurusan"						// field
											, "kode_jurusan"						// id 
											, "tbl_jurusan"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_jurusan", "kode_jurusan")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							, array(
									"id_periode"						// Field_name
									, "periode Pendaftaran"					// Text
									, $this->master->FIELD_VALUE_DEFAULT	// Value method
									, array(					// Input type
											$this->master->INPUT_TYPE_SIMPLE_TABLE
											, array()
											)
									, false						// Primary key
									, true						// view
									, true						// edit
									, array("periode"						// field
											, "id"						// id 
											, "tbl_periode_pendaftaran"		// table source						
											, array(
													)
											)
									, array($this->master->VALIDATION_MATCH_TABLE
											, array("tbl_periode", "id")
											)					// validation
									, true						// filter
									, array($this->master->INPUT_TYPE_SIMPLE_TABLE)		// filter source 
								)
							);
		$arrayDeleteRequired	= array();
		$arraySubInput			= array();
			
		$this->engineReturn = $this->master->generateSystem(
		$arraySetting
		, $arrayField
		, $arraySubInput
		, $arrayDeleteRequired);
		return $this->engineReturn;
	}
	
	public function notFound()
	{
		echo "hoy jangan ngaco";
	}
}
?>